<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="其它出库" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="applyOut()"
                            ng-disabled="!btnPermission.unusualOutAdd" translate translate-attr-title="{{!btnPermission.unusualOutAdd?'无权限执行此操作':''}}">申请出库</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                            ng-disabled="!btnPermission.unusualOutDel" translate translate-attr-title="{{!btnPermission.unusualOutDel?'无权限执行此操作':''}}">删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint()" translate>批量打印</button>
                    <button class="btn btn-operate m-r-sm" ng-click="auditData()" ng-disabled="!btnPermission.unusualOutAudit"
                            title="{{!btnPermission.unusualOutAudit?'无权限执行此操作':''}}">批量审核</button>

                    <button class="btn btn-operate m-r-sm" ng-click="batchPosting()" translate>批量过账</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchReserve()" translate>批量创建预留</button>
                            
                    </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.unusualOutExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl" download-param="exportParam.sectionParam"
                                    download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate translate-attr-placeholder="申请单号"
                               ng-model="condition.abnormalNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()"
                 date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>申请单号</span>：</label>
                        <input type="text" name="abnormalNo" ng-model="condition.abnormalNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件号</span>：</label>
                        <input type="text" name="materialsNo" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调出仓库</span>：</label>
                        <input type="text" name="outLocation" ng-model="condition.outLocation" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>出库类型</span>：</label>
                        <select name="typeId" class="form-control" ng-model="condition.typeId"
                                ng-options="item.id as (item.type|translate) for item in outTypeList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>出库状态</span>：</label>
                        <select class="form-control" ng-model="condition.status"
                                ng-options="item.id as (item.name|translate) for item in outState">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>过账状态</span>：</label>
                        <select class="form-control" ng-model="condition.postStatus">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>未过账</option>
                            <option value="1" translate>部分过账</option>
                            <option value="2" translate>已过账</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" name="createName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单部门</span>：</label>
                        <input type="text" ng-model="condition.dept" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>产生原因</span>：</label>
                        <select name="materialsType" class="form-control" ng-model="condition.reasonName"
                                ng-options="item.name as (item.name|translate) for item in reasonList" required yb-focus>
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户</span>：</label>
                        <input type="text" name="agentName" class="form-control" ng-model="condition.agentName">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>CRM单号</span>：</label>
                        <input type="text" name="agentName" class="form-control" ng-model="condition.crmOrder">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>拆件单号</span>：</label>
                        <input type="text" name="splitOrder" class="form-control" ng-model="condition.splitOrder">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.auditStatus">
                            <option value="" translate>请选择</option>
                            <option value=0 translate>待审核</option>
                            <option value=1 translate>审核通过</option>
                            <option value=-1 translate>审核拒绝</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否回执</span>：</label>
                        <select name="returnStatus" class="form-control" ng-model="condition.isReceipt">
                            <option value="" translate>请选择</option>
                            <option value="1" translate>是</option>
                            <option value="0" translate>否</option>
                        </select>
                    </div>

                    <div class="form-group clearfix" ng-if="isKY">
                        <label class="control-label"><span translate>同步车队系统状态</span>：</label>
                        <select class="form-control" ng-model="condition.syncCdglxtStatus">
                            <option value="" translate>请选择</option>
                            <option value="0" translate>未同步</option>
                            <option value="1" translate>同步成功</option>
                            <option value="2" translate>同步失败</option>
                            <option value="3" translate>不需同步</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.fixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.unusualOutPrint || (isJCH&&item.auditStatus!=1)"
                                                translate translate-attr-title="{{!btnPermission.unusualOutPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="outbound(item)" ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="item.status !== 0 || !btnPermission.unusualOutOut"
                                                translate translate-attr-title="{{!btnPermission.unusualOutOut?'无权限执行此操作':''}}">出库</button>
                                        
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)" ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="item.status === 2 || item.status === 3 || !btnPermission.unusualOutEdit"
                                                translate translate-attr-title="{{!btnPermission.unusualOutEdit?'无权限执行此操作':''}}">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)" ng-if="curOrg.isBarcode !== 0"
                                                ng-disabled="item.status === 2 || item.status === 3 || item.isSynsapSuccess === 1 || !btnPermission.unusualOutEdit"
                                                translate translate-attr-title="{{!btnPermission.unusualOutEdit?'无权限执行此操作':''}}">编辑</button>

                                        <button class="btn btn-operate m-r-xs" ng-click="delData('single', item.id)"
                                                ng-disabled="!!item.status || !btnPermission.unusualOutDel"
                                                translate translate-attr-title="{{!btnPermission.unusualOutDel?'无权限执行此操作':''}}">删除</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="obligate(item)"
                                                ng-disabled="!!item.obligateDisabled || item.isSynsapSuccess === 1 || !btnPermission.unusualOutObligateAdd"
                                                translate translate-attr-title="{{!btnPermission.unusualOutObligateAdd?'无权限执行此操作':''}}">创建预留单</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="posting(item)"
                                                ng-disabled="!!item.postingDisabled  || item.status === 0 || item.postStatus === 2 || !btnPermission.unusualOutObligatePosting"
                                                translate translate-attr-title="{{!btnPermission.unusualOutObligatePosting?'无权限执行此操作':''}}">SAP过账</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="mandatoryFinish(item.abnormalNo)"
                                                ng-disabled="item.status === 2 || item.status === 3 || !btnPermission.mandatoryFinish"
                                                translate translate-attr-title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="auditBill(item)"
                                                ng-disabled="item.auditStatus != 0 || !btnPermission.unusualOutAudit"
                                                translate translate-attr-title="{{!btnPermission.unusualOutAudit?'无权限执行此操作':''}}">审核</button>

                                        <button class="btn btn-operate m-r-xs" ng-click="handleReceipt(item.id)"
                                            ng-disabled="item.status != 2 || item.isReceipt == 1">回执</button>

                                        <button class="btn btn-operate m-r-xs"
                                            ng-if="isKY"
                                            ng-click="sync2Car(item.id)"
                                            ng-disabled="item.syncCdglxtStatus==1||item.status==0||item.status==1">同步车队系统</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate' && !itemCol.isEN) || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <span  ng-if="itemCol.isEN" translate>
                                        {{item[itemCol.dataField]}}
                                    </span>                                    
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                        ng-disabled="!btnPermission.unusualOutDel" translate translate-attr-title="{{!btnPermission.unusualOutDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[1]" ng-if="activeFlag[1]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>出库单号</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.abnormalNo  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>出库类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select name="typeId" class="form-control" ng-model="orderObj.headerInfo.typeId"
                                ng-options="item.id as (item.type|translate) for item in outTypeList"
                                required yb-focus ng-change="changeBillType(orderObj.headerInfo.typeId)">
                            <option value="" translate>请选择</option>
                        </select>
                        <div class="msg-block" ng-if="form.typeId.$dirty || (form.typeId.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.typeId.$error.required && !form.typeId.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>内部订单号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <inner-order-auto-complete bind-key="innerOrder" option-list="innerOrderList" ng-model="innerOrder.item" ng-if="isSWY"></inner-order-auto-complete>
                        <select name="innerOrder" class="form-control" ng-model="innerOrder.item" ng-if="!isSWY"
                                ng-options="item.innerOrder for item in innerOrderList track by item.innerOrder">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>内部订单号说明</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{innerOrder.item.innerOrderNote  || '-'}}">
                        {{innerOrder.item.innerOrderNote  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>产生原因</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.headerInfo.reasonName" sel-key="OOFROMTYPE">
                            <input type="text" name="reason" class="form-control light-bg" ng-model="orderObj.headerInfo.reasonName"
                                translate translate-attr-placeholder="请选择" required readonly yb-focus>
                        </div>

                        <div class="msg-block" ng-if="form.reason.$dirty || (form.reason.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.reason.$error.required && !form.reason.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outLocation" select-obj="selectWarehouse()"
                             clear-form="clearWarehouse()" tips-name="调出仓库" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.outLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择调出仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.outArea" select-obj="selectArea()"
                             clear-form="clearArea()" tips-name="调出库区" form-require="true"></div>

                        <div class="msg-block" ng-if="!orderObj.headerInfo.outArea && submitted">
                        <div class="error-msg">
                            <div class="msg-triangle"></div>
                            <span translate>请选择调出库区</span>
                        </div>
                    </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>承运物流</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.logistics" select-obj="selectLogisticsCom()"
                             clear-form="clearLogisticsCom()" tips-name="承运物流"></div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsPerson" class="form-control light-bg" maxlength="20" ng-model="orderObj.headerInfo.logisticsPerson">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsPhone" yb-contact yb-focus class="form-control light-bg" maxlength="20" ng-model="orderObj.headerInfo.logisticsPhone">

                        <div class="msg-block" ng-show="form.logisticsPhone.$dirty || (form.logisticsPhone.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.logisticsPhone.$error.contactInfo && !form.logisticsPhone.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>客户</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.agentName" select-obj="selectAgent()"
                             clear-form="clearAgent()" tips-name="客户"></div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="orderObj.headerInfo.deliveryTypeId" second-level-model="orderObj.headerInfo.sendTypeChildId" parent-type-name="orderObj.headerInfo.deliveryTypeName"
                             child-type-name = "orderObj.headerInfo.sendTypeChildName"></div>
                        <div class="msg-block" ng-if="form.sendType.$dirty || (form.sendType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.sendType.$error.required && !form.sendType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><i>*</i><span translate>运费结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.headerInfo.settleTypeName" sel-key="JSFS">
                            <input type="text" name="settleType" class="form-control light-bg" ng-model="orderObj.headerInfo.settleTypeName"
                                translate translate-attr-placeholder="请选择" required readonly yb-focus>
                        </div>

                        <div class="msg-block" ng-if="form.settleType.$dirty || (form.settleType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.settleType.$error.required && !form.settleType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.headerInfo.receiverName"
                               maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receivePhone" yb-contact yb-focus class="form-control" maxlength="20" ng-model="orderObj.headerInfo.receiverPhone">
                        <div class="msg-block" ng-show="form.receivePhone.$dirty || (form.receivePhone.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.receivePhone.$error.contactInfo && !form.receivePhone.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" yb-contact yb-focus class="form-control" maxlength="20" ng-model="orderObj.headerInfo.receiverFax">
                        <div class="msg-block" ng-show="form.receiverFax.$dirty || (form.receiverFax.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.receiverFax.$error.contactInfo && !form.receiverFax.focused">
                                <div class="msg-triangle"></div>
                                <span translate>传真格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="address" class="form-control" maxlength="50" ng-model="orderObj.headerInfo.address">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" class="form-control" maxlength="200" ng-model="orderObj.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>拆件单号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" class="form-control" maxlength="200" ng-model="orderObj.headerInfo.splitOrder">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{(orderObj.headerInfo.applicationDate) | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{(orderObj.headerInfo.applicationDate) | YbDate:"yyyy-MM-dd HH:mm:ss"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>总价</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.headerInfo.totalAmount}}">
                        {{orderObj.headerInfo.totalAmount}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 control-label max-w-100"><span translate>成本总价</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.headerInfo.costTotal}}">
                        {{orderObj.headerInfo.costTotal}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                    <label class="col-xs-4 control-label max-w-100"><span translate>总账科目</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="standardPrice" class="form-control"
                                    ng-model="orderObj.headerInfo.generalLedgerCategory" yb-number-input disable-decimal="true"
                                      max="9999999999">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isZHJCH">
                    <label class="col-xs-4 control-label max-w-100"><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.supplierOrgName" select-obj="selectSupplier()"
                            clear-form="clearSupplier()" tips-name="供货商"></div>
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMateriel()" translate>导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs"><span translate>显示成本价</span>:</label>
                        <toggle ng-model="costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" is-default-warehouse="true" selected-list="orderObj.materialList"
                 warehouse-code="orderObj.headerInfo.outLocation" area-code="orderObj.headerInfo.outArea" mark-stock-status="true"></div>
            <div class="main-area d-b-60" style="top:350px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center">
                                    <div yb-check-box yb-checked="markInfo.allCheckedMaterial" yb-click="selectAll(orderObj.materialList, 'Material')"></div>
                                </th>
                                <th width="80" translate>
                                    操作
                                </th>
                                <th ng-repeat="itemCol in newTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="newTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialList track by $index">
                                <td width="40" class="text-center">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, orderObj.materialList, 'Material')"></div>
                                </td>
                                <td width="80">
                                    <button type="button" class="btn btn-operate" ng-click="delMateriel(item, $index)" translate>删除</button>
                                </td>
                                <td ng-repeat="itemCol in newTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}" ng-if="itemCol.type!=='cost'||costPriceShow">

                                    <div class="spill-dots" ng-if="!itemCol.input">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                               ng-change="checkStock(item)" yb-number-input max="9999999.999" maxlength="11" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.qtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr || item.showStockErr">
                                            <i class="triangle"></i>
                                            <div class="msg" translate>{{item.qtyErrMsg}}</div>
                                        </div>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'price'" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]"
                                               ng-change="checkStock(item)" yb-number-input max="99999999.99" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.priceErr}">
                                        <div class="pos-a tool-tips" ng-if="item.priceErr">
                                            <i class="triangle"></i>
                                            <div class="msg" translate>{{item.priceErrMsgTxt}}</div>
                                        </div>
                                    </div>

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)" translate>提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>出库单号</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.headerInfo.abnormalNo  || '-'}}">
                        {{orderObj.headerInfo.abnormalNo  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>出库类型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select name="typeId" class="form-control" ng-model="orderObj.headerInfo.typeId"
                                ng-options="item.id as item.type for item in outTypeList"
                                required yb-focus ng-change="changeBillType(orderObj.headerInfo.typeId)">
                            <option value="" translate>请选择</option>
                        </select>

                        <div class="msg-block" ng-if="form.typeId.$dirty || (form.typeId.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.typeId.$error.required && !form.typeId.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>内部订单号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <inner-order-auto-complete bind-key="innerOrder" option-list="innerOrderList" ng-model="innerOrder.item" ng-if="isSWY"></inner-order-auto-complete>
                        <select name="innerOrder" class="form-control" ng-model="innerOrder.item" ng-if="!isSWY"
                                ng-options="item.innerOrder for item in innerOrderList track by item.innerOrder">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>内部订单号说明</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{innerOrder.item.innerOrderNote  || '-'}}">
                        {{innerOrder.item.innerOrderNote  || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>产生原因</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.headerInfo.reasonName" sel-key="OOFROMTYPE">
                            <input type="text" name="reason" class="form-control light-bg" ng-model="orderObj.headerInfo.reasonName"
                                translate translate-attr-placeholder="请选择" required readonly yb-focus>
                        </div>

                        <div class="msg-block" ng-if="form.reason.$dirty || (form.reason.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.reason.$error.required && !form.reason.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>调出仓库</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.outLocation  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>调出库区</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.outArea  || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>承运物流</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.logistics" select-obj="selectLogisticsCom()"
                             clear-form="clearLogisticsCom()" tips-name="承运物流"></div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsPerson" class="form-control light-bg" maxlength="20" ng-model="orderObj.headerInfo.logisticsPerson">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsPhone" yb-contact yb-focus  class="form-control light-bg" maxlength="20" ng-model="orderObj.headerInfo.logisticsPhone">
                        <div class="msg-block" ng-show="form.logisticsPhone.$dirty || (form.logisticsPhone.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.logisticsPhone.$error.contactInfo && !form.logisticsPhone.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>客户</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.agentName" select-obj="selectAgent()"
                             clear-form="clearAgent()" tips-name="客户"></div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div select-send-type first-level-model="orderObj.headerInfo.deliveryTypeId" second-level-model="orderObj.headerInfo.sendTypeChildId" parent-type-name="orderObj.headerInfo.deliveryTypeName"
                             child-type-name = "orderObj.headerInfo.sendTypeChildName"></div>
                        <div class="msg-block" ng-if="form.sendType.$dirty || (form.sendType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.sendType.$error.required && !form.sendType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><i>*</i><span translate>运费结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div dictionary-selector ng-model="orderObj.headerInfo.settleTypeName" sel-key="JSFS">
                            <input type="text" name="settleType" class="form-control light-bg" ng-model="orderObj.headerInfo.settleTypeName"
                                translate translate-attr-placeholder="请选择" required readonly yb-focus>
                        </div>

                        <div class="msg-block" ng-if="form.settleType.$dirty || (form.settleType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.settleType.$error.required && !form.settleType.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverName" class="form-control" ng-model="orderObj.headerInfo.receiverName"
                               maxlength="20">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receivePhone"  yb-contact yb-focus class="form-control" ng-model="orderObj.headerInfo.receiverPhone">
                        <div class="msg-block" ng-show="form.receivePhone.$dirty || (form.receivePhone.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.receivePhone.$error.contactInfo && !form.receivePhone.focused">
                                <div class="msg-triangle"></div>
                                <span translate>联系方式格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="receiverFax" yb-contact yb-focus class="form-control" maxlength="20" ng-model="orderObj.headerInfo.receiverFax">
                        <div class="msg-block" ng-show="form.receiverFax.$dirty || (form.receiverFax.$invalid && submitted)">
                            <div class="error-msg" ng-show="form.receiverFax.$error.contactInfo && !form.receiverFax.focused">
                                <div class="msg-triangle"></div>
                                <span translate>传真格式错误</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="address" class="form-control" maxlength="50" ng-model="orderObj.headerInfo.address">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" class="form-control" maxlength="200" ng-model="orderObj.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>拆件单号</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" class="form-control" maxlength="200" ng-model="orderObj.headerInfo.splitOrder">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{(orderObj.headerInfo.applicationDate) | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{(orderObj.headerInfo.applicationDate) | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span translate>总价</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.headerInfo.totalAmount}}">
                        {{orderObj.headerInfo.totalAmount}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 control-label max-w-100"><span translate>成本总价</span>：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{orderObj.headerInfo.costTotal}}">
                        {{orderObj.headerInfo.costTotal}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                    <label class="col-xs-4 control-label max-w-100"><span translate>总账科目</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="standardPrice" class="form-control"
                                    ng-model="orderObj.headerInfo.generalLedgerCategory" yb-number-input disable-decimal="true"
                                      max="9999999999">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isZHJCH">
                    <label class="col-xs-4 control-label max-w-100"><span translate>供货商</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="orderObj.headerInfo.supplierOrgName" select-obj="selectSupplier()"
                            clear-form="clearSupplier()" tips-name="供货商"></div>
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs" translate>显示成本价:</label>
                        <toggle ng-model="costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:350px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in editTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="editTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialList track by $index">
                                <td ng-repeat="itemCol in editTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}" ng-if="itemCol.type!=='cost'||costPriceShow">

                                    <div class="spill-dots" ng-if="!itemCol.input || item.status == 2 || item.status == 3">
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <span ng-if="!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                        </span>
                                    </div>

                                    <div ng-if="itemCol.input && itemCol.inputType === 'txt' && (item.status == 0 || item.status == 1)" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                               ng-change="checkStock(item)" yb-number-input max="9999999.999" maxlength="11" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.qtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr || item.showStockErr">
                                            <i class="triangle"></i>
                                            <div class="msg">{{item.qtyErrMsg}}</div>
                                        </div>
                                    </div>
                                    <div ng-if="itemCol.input && itemCol.inputType === 'price' && item.status < 2" class="td-edit pos-r">
                                        <input type="text" class="form-control edit" ng-model="item[itemCol.dataField]"
                                               ng-change="checkStock(item)" yb-number-input max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': !!item.priceErr}">
                                        <div class="pos-a tool-tips" ng-if="item.priceErr">
                                            <i class="triangle"></i>
                                            <div class="msg">{{item.priceErrMsgTxt}}</div>
                                        </div>
                                    </div>

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)" translate>提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="查看" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.abnormalNo || '-'}}">
                        {{orderObj.headerInfo.abnormalNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.type || '-'}}">
                        {{orderObj.headerInfo.type || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrder || '-'}}">
                        {{orderObj.headerInfo.innerOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号说明</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrderNote  || '-'}}">
                        {{orderObj.headerInfo.innerOrderNote  || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="同步SAP">同步SAP</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.isSynsap ? "是" : "否"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="同步状态">同步状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.isSynsapSuccess | ProgressStatus:"sap"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="零件凭证">零件凭证</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.voucherNo || '-'}}">
                        {{orderObj.headerInfo.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>过账状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>产生原因</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.reasonName || '-'}}">
                        {{orderObj.headerInfo.reasonName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea  || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.status | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运物流</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logistics || '-'}}">
                        {{orderObj.headerInfo.logistics || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisticsPerson || '-'}}">
                        {{orderObj.headerInfo.logisticsPerson || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.logisticsPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.agentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.deliveryTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate translate-attr-title="运费结算方式">运费结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.settleTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.address || '-'}}">
                        {{orderObj.headerInfo.address || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>拆件单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.splitOrder || '-'}}">
                        {{orderObj.headerInfo.splitOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.dept || '-'}}">
                        {{orderObj.headerInfo.dept || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.headerInfo.applicationDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总价</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.totalAmount || '-'}}">
                        {{orderObj.headerInfo.totalAmount || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>成本总价</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.costTotal || '-'}}">
                        {{orderObj.headerInfo.costTotal || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总账科目</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.generalLedgerCategory || '-'}}">
                        {{orderObj.headerInfo.generalLedgerCategory || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs" translate>显示成本价:</label>
                        <toggle ng-model="costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top': !!costPriceShow ? '310px' : '280px'}">
                <div yb-table-fixed class="table-fixed-wrap" ng-style="{'margin-top': isEN ? '20px' : ''}">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="130" class="border-l-none" translate>
                                    操作
                                </th>
                                <th ng-repeat="itemCol in viewTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="viewTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialList track by $index">
                                <td width="130" class="font-0">
                                    <button class="btn btn-operate" ng-click="mandatoryFinish(orderObj.headerInfo.abnormalNo, orderObj.headerInfo.id, item.materialsNo)"
                                            ng-disabled="orderObj.headerInfo.status == 2 || orderObj.headerInfo.status == 3 || item.status == 2 || item.status == 3 || !btnPermission.mandatoryFinish" translate translate-attr-title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                    <button class="btn btn-operate" ng-click="posting(orderObj.headerInfo, item.materialsNo)" style="margin-left: 10px"
                                            ng-disabled="item.realQty <= item.postAmount || item.status == 3 || !btnPermission.unusualOutObligatePosting" translate translate-attr-title="{{!btnPermission.unusualOutObligatePosting?'无权限执行此操作':''}}">过账</button>
                                    <button class="btn btn-operate" ng-click="deliveryRevoke(orderObj.headerInfo, item.materialsNo)" style="margin-left: 10px;"
                                            ng-disabled="item.status === 0 || item.status == 3 || !btnPermission.mandatoryFinish" translate translate-attr-title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">撤回</button>
                                </td>
                                <td ng-repeat="itemCol in viewTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    class="spill-dots" ng-if="itemCol.type!=='cost'||costPriceShow"
                                    title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="mandatoryFinish(orderObj.headerInfo.abnormalNo, orderObj.headerInfo.id)"
                        ng-disabled="orderObj.headerInfo.status == 2 || orderObj.headerInfo.status == 3 || !btnPermission.mandatoryFinish" translate translate-attr-title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>返回</button>
            </div>
        </div>
        <div tab heading="出库" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.abnormalNo || '-'}}">
                        {{orderObj.headerInfo.abnormalNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.type || '-'}}">
                        {{orderObj.headerInfo.type || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrder || '-'}}">
                        {{orderObj.headerInfo.innerOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号说明</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrderNote|| '-'}}">
                        {{orderObj.headerInfo.innerOrderNote  || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>同步SAP</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.isSynsap ? "是" : "否"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>同步状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.isSynsapSuccess | ProgressStatus:"sap"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>产生原因</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.reasonName || '-'}}">
                        {{orderObj.headerInfo.reasonName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea  || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.status | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运物流</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logistics || '-'}}">
                        {{orderObj.headerInfo.logistics || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisticsPerson || '-'}}">
                        {{orderObj.headerInfo.logisticsPerson || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.logisticsPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.agentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.deliveryTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运费结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.settleTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.address || '-'}}">
                        {{orderObj.headerInfo.address || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>拆件单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.splitOrder || '-'}}">
                        {{orderObj.headerInfo.splitOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.dept || '-'}}">
                        {{orderObj.headerInfo.dept || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.headerInfo.applicationDate | YbDate) || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i><span translate>零件信息</span>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:290px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in outTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="outTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialList track by $index">
                                <td ng-repeat="itemCol in outTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-class="{'wrapper-none': itemCol.inputType === 'func'}">

                                    <div class="spill-dots" ng-if="!itemCol.input || item.status == 2 || item.status == 3" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </div>

                                    <div ng-if="!!itemCol.input && itemCol.inputType === 'func' && (item.status == 0 || item.status == 1)" class="td-edit pos-r">
                                        <div yb-form-clear class="td-edit"  ng-model="item[itemCol.dataField]" select-obj="selDepot(item)"
                                             clear-form="clearDepot(item)" tips-name="储位"
                                             title="{{item[itemCol.dataField]}}" ng-class="{'error': !!item.locationErr}">
                                        </div>

                                        <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.locationCode">
                                            <i class="triangle"></i>
                                            <div class="msg" translate>请选择储位</div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()" translate>确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.abnormalNo || '-'}}">
                        {{orderObj.headerInfo.abnormalNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.type || '-'}}">
                        {{orderObj.headerInfo.type || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrder || '-'}}">
                        {{orderObj.headerInfo.innerOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>内部订单号说明</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.innerOrderNote  || '-'}}">
                        {{orderObj.headerInfo.innerOrderNote  || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>产生原因</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.reasonName || '-'}}">
                        {{orderObj.headerInfo.reasonName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outLocation || '-'}}">
                        {{orderObj.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调出库区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.outArea || '-'}}">
                        {{orderObj.headerInfo.outArea  || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运物流</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logistics || '-'}}">
                        {{orderObj.headerInfo.logistics || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisticsPerson || '-'}}">
                        {{orderObj.headerInfo.logisticsPerson || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.logisticsPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.agentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.deliveryTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>运费结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.settleTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots"><span translate>收货人联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverPhone || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.address || '-'}}">
                        {{orderObj.headerInfo.address || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>拆件单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.splitOrder || '-'}}">
                        {{orderObj.headerInfo.splitOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.headerInfo.applicationDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总价</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.totalAmount || '-'}}">
                        {{orderObj.headerInfo.totalAmount || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>成本总价</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.costTotal || '-'}}">
                        {{orderObj.headerInfo.costTotal || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isTJ">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总账科目</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.generalLedgerCategory || '-'}}">
                        {{orderObj.headerInfo.generalLedgerCategory || "-"}}
                    </div>
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?'无权限执行此操作':''}}">
                        <label class="font-12 m-r-xs" translate>显示成本价:</label>
                        <toggle ng-model="costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:260px;width: 68vw;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in editTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-if="itemCol.type!=='cost'||costPriceShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="editTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialList track by $index">
                                <td ng-repeat="itemCol in editTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}" ng-if="itemCol.type!=='cost'||costPriceShow">

                                    <div class="spill-dots">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="left: auto; width: 225px;top:260px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="500" class="form-control full" ng-model="auditMessage.value" placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('1')">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('2')">拒绝</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
    </div>
</div>